import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { MarshalException } from "../../Engine/RMI/MarshalException";
type int = number;
//class EDramaType
    
    export  class EDramaType
    {
        constructor(arg1: int)
        {
            
            this.__value = arg1;
            return;
        }

        public static convert(arg1: int): EDramaType
        {
            return new EDramaType(arg1);
        }

        public value(): int
        {
            return this.__value;
        }

        public __write(arg1: SerializeStream): void
        {
            arg1.writeByte(this.__value);
            return;
        }

        public static __read(arg1: SerializeStream): EDramaType
        {
            var loc1=arg1.readByte();
            if (loc1 < 0 || loc1 >= 35) 
            {
                throw new MarshalException();
            }
            return EDramaType.convert(loc1);
        }

        public static /* const */_EDramaNormal: int=0;

        public static /* const */_EDramaAddDramaTool: int=1;

        public static /* const */_EDramaDelDramaTool: int=2;

        public static /* const */_EDramaPrintDramaText: int=3;

        public static /* const */_EDramaBlackScreen: int=4;

        public static /* const */_EDramaCancleBlackScreen: int=5;

        public static /* const */_EDramaPrintInBlackScreen: int=6;

        public static /* const */_EDramaMoveScreen: int=7;

        public static /* const */_EDramaPlayerMove: int=8;

        public static /* const */_EDramaSpecialEfficacy: int=9;

        public static /* const */_EDramaRemind: int=10;

        public static /* const */_EDramaShowPanel: int=11;

        public static /* const */_EDramaHidePanel: int=12;

        public static /* const */_EDramaRemoveSpecialEfficacy: int=13;

        public static /* const */_EDramaDownLeftText: int=16;

        public static /* const */_EDramaFallenLeaves: int=17;

        public static /* const */_EDramaAddBuff: int=21;

        public static /* const */_EDramaRemoveBuff: int=22;

        public static /* const */_EDramaRefreshBoss: int=23;

        public static /* const */_EDramaRemoveBoss: int=24;

        public static /* const */_EDramaBossMove: int=25;

        public static /* const */_EDramaUseSkill: int=26;

        public static /* const */_EDramaChangeDirection: int=27;

        public static /* const */_EDramaReward: int=30;

        public static /* const */_EDramaNull: int=31;

        public static /* const */_EDramaChangeAi: int=32;

        public static /* const */_EDramaRefreshShop: int=33;

        public static /* const */_EDramaFail: int=34;

        public static /* const */_EDramaDeactivePet: int=15;

        public static /* const */_EDramaActivePet: int=14;

        public /* var */__value: int;
    }
